package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

/**
 * 班级实体类
 */
@TableName("t_class")
public class ClassBean {
    /**班级编号*/
    @TableId(value = "pk_classId",type = IdType.AUTO)
    private Integer classId;
    /**班级名称*/
    @TableField("c_className")
    private String className;
    /**带班老师*/
    @TableField("c_teacher")
    private String teacher;
    /**开班时间*/
    @TableField("c_classDate")
    private LocalDate date;



    public ClassBean() {
    }

    public ClassBean(String className, String teacher, LocalDate date) {
        this.className = className;
        this.teacher = teacher;
        this.date = date;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", teacher='" + teacher + '\'' +
                ", date=" + date +
                '}'+"\n";
    }
}
